package com.scheduing;

import com.service.PushMessageService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Date：2022/8/28 14:02
 * Version：1.0
 * Description：
 * @author Administrator
 */
@Component
public class SchedulingConfiguration {

    @Resource
    private PushMessageService pushMessageService;

    @Scheduled(cron = "${cron.zs}")
    public void schedulingZs() {
        pushMessageService.orderStatus();
    }
}
